﻿namespace Forum.MiddleWare
{
    public class TestMiddleWare
    {
        private readonly RequestDelegate _next;
        private static IParaInterface _parameter;

        public TestMiddleWare(RequestDelegate next, IParaInterface parameter)
        {
            _next = next;
            _parameter = parameter;
        }

        public async Task Invoke(HttpContext context)
        {
            Console.WriteLine("中间件1");

            await _next.Invoke(context);
        }
    }
}
